<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="/tags/struts-html" prefix="html" %>
<div>
	<html:form action="/enviarEmail.do" method="post" styleId="envioMensagemForm">
		
		<html:hidden property="metodo" value="enviarMensagem"/>
		
		<h2> Enviar Email - ${requestScope.from} </h2>
		
		<c:set var="from" value="${requestScope.from}" scope="session"/>
		
		<TABLE>
			<TR>
				<TD>Para:</TD>
				<TD><html:text property="to"></html:text></TD>
				
			</TR>
			<TR>
				<TD>Assunto:</TD>
				<TD><html:text property="assunto"></html:text></TD>
				<TD></TD>
			</TR>
			<TR>
				<TD>Conteúdo:</TD>
				<TD><html:textarea property="conteudo" cols="60" rows="10"></html:textarea></TD>
				<TD></TD>
			</TR>
		</TABLE>
		<input type="submit" value="Enviar"></input>
		<input type="button" value="Cancelar" onclick="history.back()"></input>
	</html:form>
</div>